CROSS_COMPILE = arm-linux-gnueabihf-
AS		= $(CROSS_COMPILE)as
LD		= $(CROSS_COMPILE)ld
CC		= $(CROSS_COMPILE)gcc
CPP		= $(CC) -E
AR		= $(CROSS_COMPILE)ar
NM		= $(CROSS_COMPILE)nm

STRIP		= $(CROSS_COMPILE)strip
OBJCOPY		= $(CROSS_COMPILE)objcopy
OBJDUMP		= $(CROSS_COMPILE)objdump

CFLAGS := -Wall -O2 -g


CFLAGS += -I $(NOWDIR)/include

LDFLAGS := -L$(NOWDIR) -lsetting -lpthread

TARGET1 := set_test


SRCS := $(wildcard *.c)

OBJS := $(SRCS:.c=.o)

all:clean $(TARGET1)

$(TARGET1) : setting_test.o
	$(CC)  -o $@ $^ $(LDFLAGS)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $< 

clean:
	rm -f $(shell find -name "*.o")
	rm -f $(TARGET1)
